Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Pablo Rodriguez
On 04/15/2018 06:39 PM, Hans Hagen wrote: > On 4/15/2018 6:14 PM, Pablo Rodriguez wrote: >> [...] >> Many thanks for the fix, Hans. > it's not a fix .. it's an extension to the font extension mechanism Hans it was my fault. Of course it is a new implementation. (I was thinking about the solution

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Hans Hagen
On 4/15/2018 7:07 PM, Floris van Manen wrote: On 15 Apr 2018, at 18:42, Hans Hagen wrote: In this case "The Time Capsule" from Endre eNerd (blu ray on my top floor work space with surround 5.1). much like TeX, drummers do know about timing ;-) Indeed I love to watch

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread luigi scarso
On Sun, Apr 15, 2018 at 6:02 PM, Hans Hagen wrote: > ... yet another obscure feature > It's a proven theorem that, by adding a suitable number of obscure features, you can transform everything into black magic. -- luigi

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Floris van Manen
> On 15 Apr 2018, at 18:42, Hans Hagen wrote: > > In this case "The Time Capsule" from Endre eNerd (blu ray on my top floor > work space with surround 5.1). much like TeX, drummers do know about timing ;-) .F signature.asc Description: Message signed with OpenPGP using

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Hans Hagen
On 4/15/2018 6:22 PM, Floris van Manen wrote: On 15 Apr 2018, at 18:02, Hans Hagen wrote: (some upbeat music in the background so i could convince myself) what music ? In this case "The Time Capsule" from Endre eNerd (blu ray on my top floor work space with surround

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Hans Hagen
On 4/15/2018 6:14 PM, Pablo Rodriguez wrote: On 04/15/2018 06:02 PM, Hans Hagen wrote: On 4/15/2018 1:30 PM, Pablo Rodriguez wrote: [...] Is there any way to get spaces in the string to be replaced? not with a lot of effort on my end which i'm not willing to invest in something that is just a

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Floris van Manen
> On 15 Apr 2018, at 18:02, Hans Hagen wrote: > > (some upbeat music in the background so i could convince myself) what music ? .F signature.asc Description: Message signed with OpenPGP using GPGMail

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Pablo Rodriguez
On 04/15/2018 06:02 PM, Hans Hagen wrote: > On 4/15/2018 1:30 PM, Pablo Rodriguez wrote: >> [...] >> Is there any way to get spaces in the string to be replaced? > not with a lot of effort on my end which i'm not willing to invest in > something that is just a hack for bad input ... tex has no

Re: [NTG-context] \replaceword with spaces

2018-04-15 Thread Hans Hagen
On 4/15/2018 1:30 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \replaceword[some][via ][Vía] \replaceword[some][calle ][c/ ] \replaceword[some][ calle][ Calle] \starttext \startTEXpage[offset=2em] This is what I get: \setreplacements

[NTG-context] \replaceword with spaces

2018-04-15 Thread Pablo Rodriguez
Dear list, I have the following sample: \replaceword[some][via ][Vía] \replaceword[some][calle ][c/ ] \replaceword[some][ calle][ Calle] \starttext \startTEXpage[offset=2em] This is what I get: \setreplacements[some]% calle via del viaducto de la calle

Re: [NTG-context] \replaceword in footnotes

2016-04-06 Thread Hans Hagen
On 4/6/2016 9:04 AM, Thomas A. Schmitz wrote: On 04/06/2016 08:57 AM, Wolfgang Schuster wrote: The feature is disabled in footnotes and you have to reenable it: \startsetups[footnote] \setreplacements [german] \stopsetups \setupnote[footnote][setups=footnote] Thank you, Wolfgang, this

Re: [NTG-context] \replaceword in footnotes

2016-04-06 Thread Thomas A. Schmitz
On 04/06/2016 08:57 AM, Wolfgang Schuster wrote: The feature is disabled in footnotes and you have to reenable it: \startsetups[footnote] \setreplacements [german] \stopsetups \setupnote[footnote][setups=footnote] Thank you, Wolfgang, this works indeed! Thomas

Re: [NTG-context] \replaceword in footnotes

2016-04-06 Thread Wolfgang Schuster
Thomas \setreplacements [german] \replaceword [german] [Auflage] [Au{fl}age] \mainlanguage [de] \setupbodyfont [termes, 12pt] \starttext flüssig Auflage\footnote{flüssig Auflage} \stoptext The feature is disabled in footnotes and you have to reenable it: \startsetups[footnote] \setreplacements [

[NTG-context] \replaceword in footnotes

2016-04-06 Thread Thomas A. Schmitz
Hi all, I use replacements to break unwanted ligatures in German text. This works in the text body, but not in footnotes. How can this be achieved in footnotes as well? Example attached! Thanks Thomas \setreplacements [german] \replaceword [german] [Auflage] [Au{fl}age] \mainlanguage [de

[NTG-context] Ligatures in EB Garamond (was: \replaceword and \setreplacements with xml files)

2016-01-18 Thread Jan U. Hasecke
;> I confirmed this behaviour in my real setup. > > don't assume that ligatures are always real ligatures ... in that font > it's just kerning .. this kind of works okay: > > \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen] I am confused as the specimen of EB Garamond

Re: [NTG-context] \replaceword and \setreplacements with xml files

2016-01-18 Thread Hans Hagen
ligatures ... in that font it's just kerning .. this kind of works okay: \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen] Thanks a lot. This was new to me. there are many hidden tricks ... to be revealed in due time (so that we can suggest that it was just implemented) Hans

Re: [NTG-context] \replaceword and \setreplacements with xml files

2016-01-17 Thread Jan U. Hasecke
ligatures ... in that font > it's just kerning .. this kind of works okay: > > \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen] Thanks a lot. This was new to me. juh ___ If your question is of inter

Re: [NTG-context] \replaceword and \setreplacements with xml files

2016-01-17 Thread Hans Hagen
kay: \replaceword[sellig][auflösen][auf{-}{}{\zwnj}lösen] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.

Re: [NTG-context] \replaceword and \setreplacements with xml files

2016-01-16 Thread Schmitz Thomas A.
> On 16 Jan 2016, at 12:24, Jan U. Hasecke wrote: > > Both solutions work fine if I use them in a simple context file, but I > can't use neither solution in my xml processing. > > I use a customized version of the from-pandoc-to-context solution of Pablo. > > When

[NTG-context] \replaceword and \setreplacements with xml files

2016-01-16 Thread Jan U. Hasecke
Dear list, some time ago I ask for a way to selectively suppress ligatures. Hans told me to use the replacement feature. - http://www.ntg.nl/pipermail/ntg-context/2015/083044.html - http://www.ntg.nl/pipermail/ntg-context/2015/083034.html In another thread a solution with the translate module

Re: [NTG-context] \replaceword and \setreplacements with xml files

2016-01-16 Thread Jan U. Hasecke
egistersetup{xml:initialize} \startxmlsetups xml:p \xmlflush{#1} \stopxmlsetups \setupbodyfont [mainface, 16pt] \replaceword[sellig][auflösen][au{fl}ösen] \setreplacements[sellig] \starttext \xmlprocessbuffer{main}{demo}{} \stoptext \startbuffer[demo] auflösen, fließend